import wtforms

from validators import BaseForm


class LoginForm(BaseForm):
    """
    登录表单校验类
    """
    userName = wtforms.StringField("用户名", [wtforms.validators.DataRequired(message="用户名不能为空")])
    password = wtforms.StringField("密码", [wtforms.validators.DataRequired(message="密码不能为空")])
